Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store leaked stacks in memory #2232

Merged
merged 1 commit into from
Mar 25, 2023

Conversation

Alan-Jowett
Copy link
Member

Description

Debugging asserts from _ebpf_leak_detector::dump_leaks due to leaked memory is hard as the log is written to the console which is not always captured. To make it easier to debug, this change also writes the log to an in memory buffer.

Testing

CI/CD

Documentation

No.

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
@codecov
Copy link

codecov bot commented Mar 24, 2023

Codecov Report

Merging #2232 (5fe9abc) into main (b7429c9) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2232      +/-   ##
==========================================
- Coverage   83.67%   83.67%   -0.01%     
==========================================
  Files         151      151              
  Lines       28214    28223       +9     
==========================================
+ Hits        23608    23615       +7     
- Misses       4606     4608       +2     
Impacted Files Coverage Δ
libs/platform/user/ebpf_leak_detector.h 100.00% <ø> (ø)
libs/platform/user/ebpf_leak_detector.cpp 95.45% <100.00%> (+1.16%) ⬆️

... and 3 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@saxena-anurag saxena-anurag added this pull request to the merge queue Mar 25, 2023
Merged via the queue into microsoft:main with commit 107bc0f Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants